﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Veracruz.Facebook
{
    public static class Constants
    {
        #region consts

        //public const long ApplicationId = 20890198761;
        //public const string ApplicationKey = "446a7f1afab93a763e0c3016e03a72a2";
        //public const string Secret = "2a83b6c2ce9fa638808985e0ae49048b";

        public static readonly long ApplicationId = Convert.ToInt64(Veracruz.Facebook.Configuration.FacebookSection.Instance.ApplicationConfiguration.ApplicationID);
        public static readonly string ApplicationKey = Veracruz.Facebook.Configuration.FacebookSection.Instance.ApplicationConfiguration.ApplicationKey;
        public static readonly string Secret = Veracruz.Facebook.Configuration.FacebookSection.Instance.ApplicationConfiguration.SecretKey;

        public const long GroupId = 27257567342;
        
        public const string ReturnUrl = "ReturnUrl";
        public const string AuthentificationToken = "auth_token";
        public const string Installed = "installed";
        
        //public const string SigningCertificateName = "CN=STS";
        //public const string EncryptingCertificateName = "CN=localhost";

        public static readonly string SigningCertificateName = Veracruz.Configuration.VeracruzSection.Instance.ApplicationSecurity.SigningCertifcateName;
        public static readonly string EncryptingCertificateName = Veracruz.Configuration.VeracruzSection.Instance.ApplicationSecurity.EncryptionCertificateName;
        public const string ProviderName = "ClaimsBasedMembershipProvider";

        #endregion       
        #region ctors

        static Constants()
        { 

        }

        #endregion
    }
}
